/**
 * 
 */
package com.tvt.sexyapp_demo.fragment.dialog;

import android.app.AlertDialog;
import android.app.Dialog;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;

import com.tvt.sexyapp_demo.R;

/**
 * @author MR_HIEU
 * 
 */
public class LoadingDialog extends DialogFragment {

	@Override
	public Dialog onCreateDialog(Bundle savedInstanceState) {
		AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());

		// Get layout inflater
		LayoutInflater layoutInflater = getActivity().getLayoutInflater();

		builder.setView(layoutInflater.inflate(R.layout.layout_loading, null));

		AlertDialog dialogIns = builder.create();
		return dialogIns;
	}
}
